package com.doys.myfirstapp;
import android.app.AlertDialog;

import androidx.appcompat.app.AppCompatActivity;

public class MessageBox {
    public static AlertDialog.Builder getInfoBuilder(AppCompatActivity activity, String message) {
        final AlertDialog.Builder builder = new AlertDialog.Builder(activity);

        builder.setIcon(R.mipmap.ic_launcher);
        builder.setTitle("System info ...");
        builder.setMessage(message);

        return builder;
    }
}